chrome.storage.sync.get(["status"], res => {
    document.getElementById("status").innerText = res.status === "false"? "暂停中" : "刷课中"
})
document.getElementById("on").onclick = ()=>{
    chrome.storage.sync.set({"status": 'true'}, ()=>{
        console.log("CX->保存成功")
        document.getElementById("status").innerText = "刷课中"
    })
}
document.getElementById("off").onclick = ()=>{
    chrome.storage.sync.set({"status": 'false'}, ()=>{
        console.log("CX->保存成功")
        document.getElementById("status").innerText = "暂停中"
    })
}